import { 
  Lightbulb, 
  Fan, 
  Thermometer,
  Blinds as Curtains,
  Speaker,
  Tv,
  Lock,
  Camera,
  MonitorSmartphone as DefaultIcon
} from 'lucide-react'

interface DeviceIconProps {
  type: string
  className?: string
}

export function DeviceIcon({ type, className }: DeviceIconProps) {
  switch (type.toUpperCase()) {
    case 'LIGHT':
      return <Lightbulb className={className} />
    case 'FAN':
      return <Fan className={className} />
    case 'AC':
      return <Thermometer className={className} />
    case 'CURTAIN':
      return <Curtains className={className} />
    case 'SPEAKER':
      return <Speaker className={className} />
    case 'TV':
      return <Tv className={className} />
    case 'LOCK':
      return <Lock className={className} />
    case 'CAMERA':
      return <Camera className={className} />
    default:
      return <DefaultIcon className={className} />
  }
} 